package com.college.mapper;

import com.college.entity.SchoolCalendarInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

/**
 * <p>
 * 校历 Mapper 接口
 * </p>
 *
 * @author yoki
 * @since 2024-05-29
 */
@Mapper
public interface SchoolCalendarInfoMapper extends BaseMapper<SchoolCalendarInfo> {
    @Select("select * from school_calendar_info where #{time} > begin_time and #{time} < end_time")
    SchoolCalendarInfo getNowCalendar(Date time);
}
